<div>
  <div class="main-title">
    <h2>历史水电</h2>
  </div>
  <div class="main-section">
    <table class="table table-striped table-bordered table-hover">
      <thead>
        <tr>
          <th>房产</th>
          <th>房号</th>
          <th>租期</th>
          <th>电用量</th>
          <th>电费</th>
          <th>水用量</th>
          <th>水费</th>
        </tr>
      </thead>
      <tbody>
        {foreach $billing_data as $v}
        <tr>
          <td>{$properyt_name}</td>
          <td>{$number_name}</td>
          {if $v->start_time}
          <td>{$v->start_time|date='Y-m-d'} - {$v->end_time|date='Y-m-d'}</td>
          {else}
          <td></td>
          {/if}
          <td>{$v->electricity_consumption}</td>
          <td>{$v->electricity}</td>
          <td>{$v->water_consumption}</td>
          <td>{$v->water}</td>
        </tr>
        {/foreach}
        {if $billing_data->isEmpty()}
        <tr>
          <td colspan="7" class="text-center">列表为空</td>
        </tr>
        {/if}
      </tbody>
    </table>
    {$billing_data|raw}
  </div>
  <a href="{:url('index', ['house_property_id' => $house_property_id])}" class="btn btn-default">返回列表</a>
</div>